package com.itheima.a01;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

import java.util.logging.Logger;

/**
 * @author: AirMan
 * @date: 2025/4/8 15:46
 * @description: ComponentTest02
 */
@Component
public class ComponentTest02 {

    private static final Logger log = Logger.getLogger(String.valueOf(ComponentTest02.class));

    @EventListener
    public void revice(UserRegisterEvent event) {
        System.out.println(event);
        log.info("recive enent...");
    }
}
